package com.batchengine.rssfeed.util;

/**
 * Created by sunil.kalva@mkhoj.com.
 * User: sunilkalva
 * Date: 11 May, 2010
 * <p/>
 * <p/>
 * <image>
 * <title>Canadian Mind Products | Java Glossary</title>
 * <url>http://mindprod.com/image/rss/jgloss.png</url>
 * <width>88</width>
 * <height>31</height>
 * <link>http://mindprod.com/jgloss/jgloss.html</link>
 * </image>
 */

public class Image {

    final String title;
    final String url;
    final long width;
    final long height;
    final String link;

    public Image(String title, String url, long width, long height, String link) {
        this.title = title;
        this.url = url;
        this.width = width;
        this.height = height;
        this.link = link;
    }

    public String getTitle() {
        return title;
    }

    public String getUrl() {
        return url;
    }

    public long getWidth() {
        return width;
    }

    public long getHeight() {
        return height;
    }

    public String getLink() {
        return link;
    }

    public String toString() {
        return "Image{" +
                "title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", width=" + width +
                ", height=" + height +
                ", link='" + link + '\'' +
                '}';
    }
}
